home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / language / embedded / mcu332 / c32scall.arc / C32SCALL.EQU
Text File  |  1991-03-29  |  5KB  |  94 lines

  1.  
  2. *****************************************************************************
  3. * Revision: 1.0
  4. *
  5. *       -------------------------------------------------------------
  6. *       Module Name:        C32SCALL - M68300 CPU32Bug System Calls
  7. *       -------------------------------------------------------------
  8. *
  9. *       Description:
  10. *          1. This file contains EQUates and the SYSCALL macro to support
  11. *             the M68300 Business Card Computer (BCC) monitor program,
  12. *             CPU32Bug version 1.00.  Consult the "M68CPU32BUG Debug Monitor
  13. *             User's Manual", part number M68CPU32BUG/AD1, for more details.
  14. *          2. This file is functionally equivalent to 332SCALL.EQU, as the
  15. *             system calls for CPU32Bug 1.00 are identical to those for
  16. *             332Bug 1.01 and 1.02.
  17. *
  18. *       Notes:
  19. *          1. Motorola reserves the right to make changes to this file.
  20. *             Although this file has been carefully reviewed and is
  21. *             believed to be reliable, Motorola does not assume any
  22. *             liability arising out of its use.  This code may be freely
  23. *             used and/or modified at no cost or obligation to the user.
  24. *          2. All descriptions are WORD values unless stated otherwise.
  25. *          3. This file was made for use with the Motorola Development
  26. *             Systems M68000 Family Structured Assembler for MS-DOS,
  27. *             known as M68MASM.
  28. *          4. To use this file, either use an INCLUDE statement or just
  29. *             merge this file into your source code file.  Consult your
  30. *             assembler's user's manual for the details specific to your
  31. *             situation.
  32. *          5. Because equate files can generate many listing pages,
  33. *             the user may wish to disable the listing via NOLIST and
  34. *             LIST directives before and after the INCLUDE statements.
  35. *          6. The latest version of this file is maintained on the
  36. *             Motorola FREEWARE Bulletin Board, 512/891-FREE (512/891-
  37. *             3733).  It operates continuously (except for maintenance)
  38. *             at 1200-2400 baud, 8-bits, no parity.  Download the
  39. *             archive file C32SCALL.ARC to get all the files.
  40. *
  41. ****************************************************************************
  42.  
  43.  
  44. ****************************************************************************
  45. * System Call Macro:
  46. *   Syntax:            SYSCALL   <routine name>
  47. *     where:  <routine name>  is the bit name to be defined.
  48. *
  49. *   Action:
  50. *     Assembles the TRAP #15 instruction followed by the define constant
  51. *     for the routine name specified.
  52. *
  53. *   Notes:
  54. *     1. Additional parameters, if any, are passed on the stack.  Consult
  55. *        the individual system call routine descriptions for details.
  56. *
  57. SYSCALL MACRO
  58.         TRAP    #15
  59.         DC.W    \1
  60.         ENDM
  61.  
  62.  
  63. ****************************************************************************
  64. * CPU32Bug System Call Routine Equates
  65. ****************************************************************************
  66. .INCHR   EQU     $0000    Input character
  67. .INSTAT  EQU     $0001    Input serial port status
  68. .INLN    EQU     $0002    Input line                (pointer/pointer format)
  69. .READSTR EQU     $0003    Input string              (pointer/count format)
  70. .READLN  EQU     $0004    Input line                (pointer/count format)
  71. .CHKBRK  EQU     $0005    Check for break
  72. .OUTCHR  EQU     $0020    Output character
  73. .OUTSTR  EQU     $0021    Output string             (pointer/pointer format)
  74. .OUTLN   EQU     $0022    Output line               (pointer/pointer format)
  75. .WRITE   EQU     $0023    Output string             (pointer/count format)
  76. .WRITELN EQU     $0024    Output line               (pointer/count format)
  77. .WRITDLN EQU     $0025    Output line with data     (pointer/count format)
  78. .PCRLF   EQU     $0026    Output carriage return and line feed
  79. .ERASLN  EQU     $0027    Erase line
  80. .WRITD   EQU     $0028    Output string with data   (pointer/count format)
  81. .SNDBRK  EQU     $0029    Send break
  82. .TM_INI  EQU     $0040    Timer initialization
  83. .TM_STR0 EQU     $0041    Start timer at T=0
  84. .TM_RD   EQU     $0042    Read timer
  85. .DELAY   EQU     $0043    Timer delay function
  86. .RETURN  EQU     $0063    Return to CPU32Bug
  87. .BINDEC  EQU     $0064    Convert binary to Binary Coded Decimal (BCD)
  88. .CHANGEV EQU     $0067    Parse value
  89. .STRCMP  EQU     $0068    Compare two strings       (pointer/count format)
  90. .MULU32  EQU     $0069    Multiply two 32-bit unsigned integers
  91. .DIVU32  EQU     $006A    Divide   two 32-bit unsigned integers
  92. ****************************************************************************
  93. 
  94.